package com.zyg.jas.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class LeaveWords implements Serializable {
    private Integer id; //留言信息的id
    private String lw_name;//留言人本人的名字
    private String lw_content;//留言内容
    private String lw_forname;//给谁留言
    private Integer lw_aid;//在哪个文章id下留言
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")//后台的时间 格式化 发送到前台
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//接受前台的时间格式 传到后台的格式
    private Date lw_date;//留言时间

    public LeaveWords(Integer id, String lw_name, String lw_content, String lw_forname, Integer lw_aid, Date lw_date) {
        this.id = id;
        this.lw_name = lw_name;
        this.lw_content = lw_content;
        this.lw_forname = lw_forname;
        this.lw_aid = lw_aid;
        this.lw_date = lw_date;
    }

    public LeaveWords() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLw_name() {
        return lw_name;
    }

    public void setLw_name(String lw_name) {
        this.lw_name = lw_name;
    }

    public String getLw_content() {
        return lw_content;
    }

    public void setLw_content(String lw_content) {
        this.lw_content = lw_content;
    }

    public String getLw_forname() {
        return lw_forname;
    }

    public void setLw_forname(String lw_forname) {
        this.lw_forname = lw_forname;
    }

    public Integer getLw_aid() {
        return lw_aid;
    }

    public void setLw_aid(Integer lw_aid) {
        this.lw_aid = lw_aid;
    }

    public Date getLw_date() {
        return lw_date;
    }

    public void setLw_date(Date lw_date) {
        this.lw_date = lw_date;
    }
}
